package com.ruicar.afs.jobadmin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruicar.afs.jobadmin.core.model.AfsJobGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * The type AfsJobGroupMapper
 * <p>Description: </p>
 *
 * @author Fzero
 * @version 1.0
 * @date Created on 2020.06.13 14:17:12
 * @since 1.0
 */
@Mapper
public interface AfsJobGroupMapper extends BaseMapper<AfsJobGroup> {

    /**
     * Find all list
     *
     * @return the list
     */
    public List<AfsJobGroup> findAll();


    /**
     * Find by address type list
     *
     * @param addressType address type
     * @return the list
     */
    public List<AfsJobGroup> findByAddressType(@Param("addressType") int addressType);

    /**
     * Save int
     *
     * @param afsJobGroup afs job group
     * @return the int
     */
    public int save(AfsJobGroup afsJobGroup);

    /**
     * Update int
     *
     * @param afsJobGroup afs job group
     * @return the int
     */
    public int update(AfsJobGroup afsJobGroup);

    /**
     * Remove int
     *
     * @param id id
     * @return the int
     */
    public int remove(@Param("id") int id);

    /**
     * Load afs job group
     *
     * @param id id
     * @return the afs job group
     */
    public AfsJobGroup load(@Param("id") int id);
}
